using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace url2jpeg
{
    public partial class licence : Form
    {
        public licence()
        {
            InitializeComponent();
        }

        private void btnSubmit_Click(object sender, EventArgs e)
        {
            try
            {
                if (settings.KeyCorrect(txtEMail.Text, Convert.ToInt64(txtLicence.Text)))
                {
                    userSettings us = userSettings.GetInstance();
                    us.m_email = txtEMail.Text;
                    us.m_regkey = txtLicence.Text;
                    DialogResult = DialogResult.OK;
                }
            }
            catch { }
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            System.Diagnostics.Process.Start(((Control)sender).Text);
        }
    }
}